package saeildamil.ch18;

public class Total {
	public static void main(String[] args) {
		int total = 0;
		for (int i = 0; i < 3; i++) {
			total += i;

		}
		System.out.println(total);
		oddSum();
	}

	private static void oddSum() {
		int total = 0;

		for (int i = 1; i < 101; i += 2) {
			total += i;
		}
		System.out.println("1부터 100까지의 홀수의 합" + total);
	}
}